﻿<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true"
    CodeBehind="LogIn.aspx.cs" Inherits="WebApplication1._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<%--<html xmlns="http://www.w3.org/1999/xhtml">--%>
 
 <link rel="Stylesheet" type="text/css" href="../Styles/CKdesign.css" />
                <center><img alt="" class="style1" src="../Styles/logo2.png" /></center>
                       
 <%--</head>   

<link rel="Stylesheet" type="text/css" href="Styles/CKdesign.css" />
                <center><img alt="" class="style1" src="Styles/logo2.png" /></center>

<body>--%>
<body>
    <form id="form1" runat="server">
    <center>       
                <fieldset>
                <center>
                <div id="Login">
                <br />
                <br />
                Username: <asp:TextBox ID="txtusername" runat="server" Width="140px" ForeColor="#333333" 
                                       Height="25px"></asp:TextBox>
                                       <br />
                                       <br />
                Password: 
                    <asp:TextBox ID="txtpassword" runat="server" Width="140px" ForeColor="#333333" 
                                       Height="25px" TextMode="Password"></asp:TextBox>
                <br />
                <br />
                <div id="btnLogin"><asp:Button ID="btnlogin" runat="server" Text="Log in" 
                        onclick="btnlogin_Click"/>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Button ID="btnCancel" 
                        runat="server" Text="Cancel" onclick="btnCancel_Click"/>
                    <br />
                    <br />
                    Want to Create an Account ? Click SIGN UP!<br />
                    </div>
                    <asp:HyperLink ID="hlSignUp" runat="server" ForeColor="Blue" 
                        NavigateUrl="~/CinemaKnights/SignUp.aspx">SignUp</asp:HyperLink>
                    <br />
                    <br />
                    <asp:Label ID="lblStatus" runat="server" ForeColor="Red"></asp:Label>
                    <br />
                <br />
                <asp:RequiredFieldValidator ID="rfvusername" runat="server" 
                                       ErrorMessage="Please input Username" ControlToValidate="txtusername" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                                       <br />
                                       <br />
                <asp:RequiredFieldValidator ID="rfvpassword" runat="server" 
                                       ErrorMessage="Please input Password" ControlToValidate="txtpassword" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>

                
                </center>
                    </div>
                    </body>
                    </body>
                    </html>



<%--                <br />
                <br />
                        <div id="FullName" class="FullName"> 
                               Name (First Name - Middle Initial - Last Name)
                               <br />
                               <br />
                               <div id="FirstName">
                                   <asp:TextBox ID="txtfname" runat="server" Width="140px" ForeColor="#333333" 
                                       Height="25px"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" 
                                       ErrorMessage="First Name is required" ControlToValidate="txtfname" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                               </div>

                               <div id="MI">
                                    <asp:TextBox ID="txtmi" runat="server" Width="135px" ForeColor="#333333" 
                                        Height="22px" MaxLength="1"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvMI" runat="server"
                               ErrorMessage="Middle Initial is required" ControlToValidate="txtmi"
                               Font-Size="9" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                         </div>
                               <div id="LastName">
                                    <asp:TextBox ID="txtlname" runat="server" Width="126px" ForeColor="#333333" 
                                        Height="25px"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvLastName" runat="server" 
                                       ErrorMessage="Last Name required." ControlToValidate="txtlname" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                               </div>

                               </div>
                         <br />
                         <br />
                          <div id="Age">
                                    <br />
                                    Age:<br />
                                    <asp:TextBox ID="txtage" runat="server" Width="126px" ForeColor="#333333"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvage" runat="server" 
                                       ErrorMessage="Age is required" ControlToValidate="txtage" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>

                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                   ErrorMessage="Only Integers are allowed" ControlToValidate="txtage" 
                                   Font-Size="Small" 
                                   ValidationExpression="^\d+$" 
                                   Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                               </div>
                               <br />
                               <br />
                               <br />
                               <br />
                               <br />
                               Phone Number<br />
                                &nbsp;<div id="PhoneNumber">
                               <asp:TextBox ID="txtphonenumber" runat="server" Width="200px" ForeColor="#333333"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvphonenumber" runat="server" 
                                       ErrorMessage="Phone Number is required" ControlToValidate="txtphonenumber" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>

                                    <asp:RegularExpressionValidator ID="rgevphonenumber" runat="server" 
                                   ErrorMessage="Only Integers are allowed" ControlToValidate="txtphonenumber" 
                                   Font-Size="Small" 
                                   ValidationExpression="^\d+$" 
                                   Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                               </div>
                               <br />
                               <br />
                        <br />
                               <br />
                               Cellphone Number
                               <div id="CellphoneNumber">
                               <asp:TextBox ID="txtcpno" runat="server" Width="200px" ForeColor="#333333"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvcpno" runat="server" 
                                       ErrorMessage="Cellphone Number is required" ControlToValidate="txtcpno" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>

                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                   ErrorMessage="Only Integers are allowed" ControlToValidate="txtcpno" 
                                   Font-Size="Small" 
                                   ValidationExpression="^\d+$" 
                                   Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                               </div>
                               <br />

                                Address
                          <br />
                                 <asp:TextBox ID="txtaddress" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvaddress" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtaddress" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<br />


                               Civil Status<br />
&nbsp;<asp:DropDownList ID="ddlcivilstatus" runat="server" Width="200px" 
                                        ForeColor="#333333" Height="24px">
                                        <asp:ListItem>Civil Status</asp:ListItem>
                                        <asp:ListItem>Single</asp:ListItem>
                                        <asp:ListItem>Married</asp:ListItem>
                                        </asp:DropDownList>
                                        
                                        <asp:RequiredFieldValidator ID="rfvcivilstatus" runat="server" 
                                   ErrorMessage="Please select civil status" ControlToValidate="ddlcivilstatus" 
                                   Font-Size="X-Small" InitialValue="Civil Status" ForeColor="Red"></asp:RequiredFieldValidator><br />
                          <p> 
                               Gender:
                               <br />
                              <asp:DropDownList ID="ddlgender" runat="server" Width="300px" 
                                   ForeColor="#333333">
                                  <asp:ListItem>Select Gender</asp:ListItem>
                                  <asp:ListItem>Male</asp:ListItem>
                                  <asp:ListItem>Female</asp:ListItem>
                              </asp:DropDownList>
                              
                              <asp:RequiredFieldValidator ID="rfvgender" runat="server" 
                                   ErrorMessage="Please choose a gender" ControlToValidate="ddlgender" 
                                   Font-Size="Small" InitialValue="Select Sex:" ForeColor="Red"></asp:RequiredFieldValidator>
                         </p>

                          <p>
                               Email Address:
                               <br />
                               <asp:TextBox ID="txtemail" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                               <br />
                               <asp:RegularExpressionValidator ID="revemail" runat="server" 
                                   ErrorMessage="You have entered invalid Email Format." ControlToValidate="txtemail" 
                                   Font-Size="Small" 
                                   ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                   Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                     
                               <asp:RequiredFieldValidator ID="rfvemail" runat="server" 
                                       ErrorMessage="Email Address is required" ControlToValidate="txtemail" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                         </p>
                         <p> 
                               Re-enter Email Address:
                               <br />
                               <asp:TextBox ID="txtemailconfirmation" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                               <br />
                               <asp:CompareValidator ID="cvemailconfirmation" runat="server" 
                                   
                                   ErrorMessage="Email doesn't match. Please make sure that you have entered same Email address." ControlToCompare="txtemail" 
                                   ControlToValidate="txtemailconfirmation" Font-Size="Small" 
                                   Display="Dynamic" ForeColor="Red"></asp:CompareValidator>
                            
                                <asp:RegularExpressionValidator ID="revemailconfirmation" runat="server" 
                                   ErrorMessage="invalid Email Format" ControlToValidate="txtemailconfirmation" 
                                   Font-Size="Small" 
                                   ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                   Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                               
                               <asp:RequiredFieldValidator ID="rfvemailconfirmation" runat="server" 
                                       ErrorMessage="Email is required" ControlToValidate="txtemailconfirmation" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                         </p>
                        <div id="Birthday"  class="Birthday">
                               Birthday:
                               <br />
<br />
                               <div id="Month">
                                    <asp:DropDownList ID="ddlmonth" runat="server" Width="161px" 
                                        ForeColor="#333333" Height="24px" 
 >
                                        <asp:ListItem>Month:</asp:ListItem><asp:ListItem>January</asp:ListItem><asp:ListItem>Febuary</asp:ListItem><asp:ListItem>March</asp:ListItem><asp:ListItem>April</asp:ListItem><asp:ListItem>May</asp:ListItem><asp:ListItem>June</asp:ListItem><asp:ListItem>July</asp:ListItem><asp:ListItem>August</asp:ListItem><asp:ListItem>September</asp:ListItem><asp:ListItem>October</asp:ListItem><asp:ListItem>November</asp:ListItem><asp:ListItem>December</asp:ListItem></asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvmonth" runat="server" 
                                   ErrorMessage="Please select the month of your birth" ControlToValidate="ddlmonth" 
                                   Font-Size="X-Small" InitialValue="Month:" ForeColor="Red"></asp:RequiredFieldValidator><br />
                             </div>
                             <div id="Day">
                                  <asp:DropDownList ID="ddlday" runat="server" Width="151px" ForeColor="#333333" 
                                     Height="24px">
                                    <asp:ListItem>Day:</asp:ListItem>
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>6</asp:ListItem>
                                    <asp:ListItem>7</asp:ListItem>
                                    <asp:ListItem>8</asp:ListItem>
                                    <asp:ListItem>9</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                    <asp:ListItem>11</asp:ListItem>
                                    <asp:ListItem>12</asp:ListItem>
                                    <asp:ListItem>13</asp:ListItem>
                                    <asp:ListItem>14</asp:ListItem>
                                    <asp:ListItem>15</asp:ListItem>
                                    <asp:ListItem>16</asp:ListItem>
                                    <asp:ListItem>17</asp:ListItem>
                                    <asp:ListItem>18</asp:ListItem>
                                    <asp:ListItem>19</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                    <asp:ListItem>21</asp:ListItem>
                                    <asp:ListItem>22</asp:ListItem>
                                    <asp:ListItem>23</asp:ListItem>
                                    <asp:ListItem>24</asp:ListItem>
                                    <asp:ListItem>25</asp:ListItem>
                                    <asp:ListItem>26</asp:ListItem>
                                    <asp:ListItem>27</asp:ListItem>
                                    <asp:ListItem>28</asp:ListItem>
                                    <asp:ListItem>29</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>31</asp:ListItem>

                                    </asp:DropDownList>
                                  <br />
                                  <asp:RequiredFieldValidator ID="rfvday" runat="server" 
                                   ErrorMessage="Indicate the day of your birth." ControlToValidate="ddlday" 
                                   Font-Size="X-Small" InitialValue="Day:" ForeColor="Red"></asp:RequiredFieldValidator><br />
                             </div>
                             <div id="Year">
                                 <asp:TextBox ID="txtyear" runat="server" Width="90px" ForeColor="#333333" 
                                     Height="24px" ></asp:TextBox>
                                 <asp:RangeValidator ID="rvyear" runat="server" 
                                     ErrorMessage="Choose between 1970-2012 only." ControlToValidate="txtyear" 
                                     Display="Dynamic" Font-Size="X-Small" MaximumValue="2012" 
                                     MinimumValue="1970" ForeColor="Red"></asp:RangeValidator>
                                 <asp:RequiredFieldValidator ID="rfvyear" runat="server" 
                                   ErrorMessage="Indicate the year of your birth." ControlToValidate="txtyear" 
                                   Font-Size="X-Small" ForeColor="Red"></asp:RequiredFieldValidator></div></div>
                         
                          Religion
                          <br />
                                 <asp:TextBox ID="txtreligion" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvreligion" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtreligion" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
<br />


                           <p>
                          Education
                          (Indicate the name of your school)
                          <br />
                               <br />
                               Elementary
                               <br />
                               <asp:TextBox ID="txtelementary" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvelementary" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtelementary" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                               Year Graduated
                               <br />
                               <asp:TextBox ID="txtyearelementary" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvyearelementary" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtyearelementary" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>

                               
                               
                               
                               <br />
                               High School
                          <br />
                                 <asp:TextBox ID="txths" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvhs" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txths" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                                
                                Year Graduated
                          <br />
                                 <asp:TextBox ID="txtyearhs" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvyearhs" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtyearhs" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                              <p>
                                  &nbsp;</p>
                              <p>
                                  &nbsp;</p>
                              <p>
                                  &nbsp;</p>
                                  <br />
                                  College
                          <br />
                                 <asp:TextBox ID="txtcollege" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvcollege" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtcollege" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                                  
                                  Year Graduated
                          <br />
                                 <asp:TextBox ID="txtyearcollege" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvyearcollege" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtyearcollege" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                                   
                        <div id = "FatherParent">
                                <br />
                                Father's Name
                          <br />
                                 <asp:TextBox ID="txtfather" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvfather" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtfather" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>

                                <br />
                                Father&#39;s

                                Occupation
                          <br />
                                 <asp:TextBox ID="txtfatheroccupation" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvfatheroccupation" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtfatheroccupation" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
<br />
                                
                                <div id = "MotherParent">
                                Mother's Name
                          <br />
                                 <asp:TextBox ID="txtmothersname" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvmothersname" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtmothersname" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>

                                    <br />

                                Mother's Occupation<br />
                                 <asp:TextBox ID="txtmothersoccupation" runat="server" Width="300px" ForeColor="#333333"></asp:TextBox>
                                   <br />
                                   <asp:RequiredFieldValidator ID="rfvmothersoccupation" runat="server" 
                                       ErrorMessage="This is required" ControlToValidate="txtmothersoccupation" 
                                       Font-Size="Small" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                                       </div>
<br />
                                <br />
                                <br />
<br />
<br />
<br />
                                
                    <asp:Button ID="btnsubmit" runat="server" Text="Submit" onclick="btnsubmit_Click" />

                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                             </div>
                        <br />
                         <br />
                         
                          <br />
                          <br />
                          <br />
                          <br />
                          <br />
                          <br />
                          <br />
                         
                          <br />
                          <br />
                                   
                            <%--  <asp:Button ID="btnsubmit" runat="server" Text="Register" 
                                  onclick="btnsubmit_Click" />
                        --%>

                      
                <div id="Footer">
                   
                </div>
                </fieldset>
         </center></form></body></html>
--%>